//
//  AppDelegate.m
//  WisdomQuestor
//
//  Created by 纪景城 on 2024/12/17.
//

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
//    // 查看支持切换的语言
//    NSDictionary *dic = [[ThingSmartBizCore sharedInstance] recommendedLanguages];
//    // 切换到指定语言
//    [[ThingSmartBizCore sharedInstance] languageSwitchTo:ThingSmartBizLanguageKeyJapanese];
//    // 获取当前语言
//    ThingSmartBizLanguageKey lang = [[ThingSmartBizCore sharedInstance] currentLanguageKey]
//    // 替换语言翻译
//    [[ThingSmartBizCore sharedInstance]  setLanuageInterceptor: xxxx];

    [[ThingSmartSDK sharedInstance] startWithAppKey:@"s37x9sg4qjw7fqsvhyut" secretKey:@"w4d5cdesj8x8stpt8umedfnfsy83rx4n"];
    
//    [ThingSmartBusinessExtensionConfig setupConfig];
    
#ifdef DEBUG
    [[ThingSmartSDK sharedInstance] setDebugMode:YES];
#else
#endif
    
    
#pragma mark ------- JPProgressHUD -------
    [OCProgress_HUD setMaxSupportedWindowLevel:UIWindowLevelAlert];
    [OCProgress_HUD setMinimumDismissTimeInterval:1.5];
    [OCProgress_HUD setDarkStyle];
    
#pragma mark ------- 键盘处理 -------
    IQKeyboardManager *manager = [IQKeyboardManager sharedManager];
    manager.enable = YES;
    manager.shouldResignOnTouchOutside = YES;
    manager.toolbarDoneBarButtonItemText = @"完成";
    
    return YES;
}


#pragma mark - UISceneSession lifecycle


- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
    // Called when a new scene session is being created.
    // Use this method to select a configuration to create the new scene with.
    return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
}


- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {
    // Called when the user discards a scene session.
    // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
    // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}


@end
